package com.tcode.dao;

import com.tcode.bean.UserBean;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * Created by Administrator on 2019/5/27.
 */

public interface UserRepository extends ElasticsearchRepository<UserBean,Integer>{
    /**
     * 根据价格区间查询
     * @param sal1
     * @param sal2
     * @return
     * */
    List<UserBean> findBySalBetween(int sal1,  int sal2);

}
